package com.zzt.book.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-03-18
 * Time: 16:30
 */
@Data
public class PageRequest {
    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private Integer offset;

    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }
}
